public class ThrowTest01{
    public static void main(String[] args){
        ThrowClass tc = new ThrowClass();
        try{
            tc.excute(6);
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}

class ThrowClass{
    
    public void excute(int index) throws Exception{
        try{
            int[] arr = new int[3];
            arr[index] = 10;
        }catch(Exception e){
            throw e;
        }
    }
    
}